<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<%@page import="loginmysql.*, java.util.*,java.sql.SQLException"%>
<%	
	MysqlLogin.connect();	

	String nameItem = request.getParameter("name");
	System.out.println(nameItem);
	try{
		MysqlLogin.insert("Insert into mails (mail) values('"+nameItem+"');");
		out.print("Ok!");
	}catch(SQLException e){
		e.printStackTrace();
		out.print("Hubo en error");
	}
	MysqlLogin.disconnect();
%>